Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bytes.Clone instead of manual cloning #67

Merged
merged 2 commits into from
Sep 30, 2024
Merged

Conversation

qmuntal
Copy link
Member

@qmuntal qmuntal commented Sep 29, 2024

Use bytes.Clone instead of manual cloning bytes slices. This reduce potential bugs when refactoring the code and makes the code cleaner.

bytes.Clone wasn't used before because it was introduced in Go 1.20, and we just bump our minimum version from Go 1.17 to Go 1.20.

@mertakman
Copy link
Contributor

Thanks for doing this!

@qmuntal qmuntal merged commit 50e09a1 into main Sep 30, 2024
17 checks passed
@qmuntal qmuntal deleted the dev/qmuntal/bclone branch September 30, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants